import { nanoid } from "nanoid";
// 渲染数据当前是使用层
export const defaultData = [
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "测试按钮",
    },
    displayName: "测试按钮",
    id: "d4ZyQ5t1dI1EjNI4wHb7u",
    showTitle: true,
    component: "mdTimeSelect",
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "测试按钮",
    },
    displayName: "测试按钮",
    id: "d4ZyQ5t1dI1EjNI4wHb2J",
    showTitle: true,
    component: "mdDataSelect",
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "测试按钮",
    },
    displayName: "测试按钮",
    id: "d4ZyQ5t1dI1EjNI4wHb2J",
    showTitle: true,
    component: "mdButton",
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "用户名",
    },
    displayName: "用户名",
    id: "1IoqE6yDyVxRnNgp54iJc",
    component: "mdInput",
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "搜索容器",
    },
    displayName: "搜索容器",
    id: "qpAEHPpmZL9if4PU0ocI4",
    showTitle: true,
    component: "mdSearch",
    childrenLayouts: [
      {
        gongChengID: "",
        gongChengMC: "",
        zuJianID: "",
        zuJianMC: "",
        titleProps: {
          content: "用户名",
        },
        displayName: "用户名",
        id: "1IoqE6yDyVxRnNgp54iJc",
        component: "mdInput",
      },
      {
        gongChengID: "",
        gongChengMC: "",
        zuJianID: "",
        zuJianMC: "",
        titleProps: {
          content: "开始日期",
        },
        displayName: "开始日期",
        id: "QGEKmbxK94HBj46FPWDpG",
        showTitle: true,
        component: "MdCalendar",
      },
    ],
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "按钮",
    },
    displayName: "按钮",
    id: "1IoqE6yDyVxRnNgp54iJc",
    component: "MdCalendar",
  },
  {
    gongChengID: "",
    gongChengMC: "",
    zuJianID: "",
    zuJianMC: "",
    titleProps: {
      content: "下拉框",
    },
    displayName: "下拉框",
    id: "QGEKmbxK94HBj46FPWDpG",
    showTitle: true,
    component: "LayoutSelect",
  },
];

export const YYBJSON = {
  style: {
    defaultLinkage: true,
    id: "1345592959969570816",
    reportTheme: [
      "#3AA1FE",
      "#FFAF34",
      "#5AD8A6",
      "#907BFF",
      "#FF6B58",
      "#74D1FB",
      "#FFA8CC",
      "#FFE04E",
      "#46A9A8",
      "#A1AFCA",
    ],
    insideMargin: "8",
    elSpacing: "8",
    background: {
      model: "color",
      color: "#0072C6",
      image: { name: "", url: "" },
    },
  },
  layout: [
    {
      zuJianTBLX: 0,
      guoLvZDList: [],
      zuanQuKXWDList: [],
      keXuanWDList: [
        {
          zuanQuMC: null,
          ziDuanMC: "统计日期",
          ziDuanMS: "统计日期",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
        {
          zuanQuMC: null,
          ziDuanMC: "院区代码",
          ziDuanMS: "院区代码",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
        {
          zuanQuMC: null,
          ziDuanMC: "院区名称",
          ziDuanMS: "院区名称",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
        {
          zuanQuMC: null,
          ziDuanMC: "科室代码",
          ziDuanMS: "科室代码",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
        {
          zuanQuMC: null,
          ziDuanMC: "科室名称",
          ziDuanMS: "科室名称",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
      ],
      keXuanZBList: [
        {
          ziDuanMC: "出院人次",
          ziDuanMS: "出院人次",
          shuJuLXDM: "2",
          shuJuLXMC: "数值",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          jiShuFSDM: null,
          jiShuFSMC: null,
          queShiBZ: "0",
          shunXuHao: null,
          ziDuanLX: "2",
          huiZongFSDM: 1,
        },
      ],
      xuanZhongWDList: [
        {
          zuanQuMC: null,
          ziDuanMC: "统计日期",
          ziDuanMS: "统计日期",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
        {
          zuanQuMC: null,
          ziDuanMC: "科室代码",
          ziDuanMS: "科室代码",
          shuJuLXDM: "1",
          shuJuLXMC: "文本",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          queShiBZ: "0",
          jiaRuZQMLBZ: "0",
          shunXuHao: null,
          ziDuanLX: "1",
        },
      ],
      xuanZhongZBList: [
        {
          ziDuanMC: "出院人次",
          ziDuanMS: "出院人次",
          shuJuLXDM: "2",
          shuJuLXMC: "数值",
          huZhuanBZ: "0",
          tianJiaBZ: "0",
          juHeHSBZ: "0",
          gongShiBDS: null,
          gongShiBDSMS: null,
          gongShiBDSZB: null,
          jiShuFSDM: null,
          jiShuFSMC: null,
          queShiBZ: "0",
          shunXuHao: null,
          ziDuanLX: "2",
          huiZongFSDM: 1,
        },
      ],
      config: { type: "mic-table-block" },
      styleConfig: {},
      gongChengSJJID: "1342368558201454592",
      gongChengSJJMC: "出院人次",
      zuJianID: "1360869690083160064",
      zuJianMC: "测试1",
      createTime: "2024-08-06 14:15:39",
      x: 48,
      y: 0,
      w: 26,
      h: 6,
      id: "6c7wjzX3xJL9lRMu5Z15b",
      outflow: false,
      showTitle: true,
      invisible: false,
      outflowStyle: {},
      component: "mic-table-block",
      moved: false,
      style: {
        transform: "translate3d(408px,10px, 0)",
        WebkitTransform: "translate3d(408px,10px, 0)",
        MozTransform: "translate3d(408px,10px, 0)",
        msTransform: "translate3d(408px,10px, 0)",
        OTransform: "translate3d(408px,10px, 0)",
        width: "205px",
        height: "110px",
        position: "absolute",
      },
    },
    {
      gongChengID: "",
      gongChengMC: "",
      zuJianID: "",
      zuJianMC: "",
      zuJianNR: {
        zuJianTBLX: 1,
        guoLvZDList: [],
        zuanQuKXWDList: [],
        keXuanWDList: [],
        keXuanZBList: [],
        xuanZhongWDList: [],
        xuanZhongZBList: [],
        config: { type: "mic-table-block" },
        styleConfig: {},
      },
      titleProps: { content: "日期" },
      displayName: "日期",
      outflow: false,
      x: 22,
      y: 0,
      w: 26,
      h: 6,
      id: "t3SsdMtz7WvksxfSO_fne",
      showTitle: true,
      invisible: false,
      outflowStyle: {},
      component: "DatePick",
      moved: false,
      style: {
        transform: "translate3d(192px,10px, 0)",
        WebkitTransform: "translate3d(192px,10px, 0)",
        MozTransform: "translate3d(192px,10px, 0)",
        msTransform: "translate3d(192px,10px, 0)",
        OTransform: "translate3d(192px,10px, 0)",
        width: "205px",
        height: "110px",
        position: "absolute",
      },
    },
    {
      gongChengID: "",
      gongChengMC: "",
      zuJianID: "",
      zuJianMC: "",
      zuJianNR: {
        zuJianTBLX: 1,
        guoLvZDList: [],
        zuanQuKXWDList: [],
        keXuanWDList: [],
        keXuanZBList: [],
        xuanZhongWDList: [],
        xuanZhongZBList: [],
        config: { type: "mic-table-block" },
        styleConfig: {},
      },
      isNestComponent: true,
      titleProps: { content: "Tab 组件" },
      displayName: "Tab 组件",
      outflow: true,
      id: "8RVY3XcVL2rdaMWyzpvIp",
      showTitle: true,
      invisible: false,
      component: "layout-tabs",
    },
    {
      gongChengID: "",
      gongChengMC: "",
      zuJianID: "",
      zuJianMC: "",
      zuJianNR: {
        zuJianTBLX: 1,
        guoLvZDList: [],
        zuanQuKXWDList: [],
        keXuanWDList: [],
        keXuanZBList: [],
        xuanZhongWDList: [],
        xuanZhongZBList: [],
        config: { type: "mic-table-block" },
        styleConfig: {},
      },
      titleProps: { content: "Web" },
      displayName: "Web",
      outflow: true,
      id: "UfuKeQNjWwkY36QoUO-UA",
      showTitle: true,
      invisible: false,
      component: "layout-iframe",
    },
  ],
};
